C# auto highlight text in a textbox control
3002
13-Nov-2013
How
do you auto highlight text in a textbox control when the control gains focus?
Anonymous User
13-Nov-2013In Windows Forms and WPF:
textbox.SelectionStart = 0;
textbox.SelectionLength = textbox.Text.Length;
Hope this will solve your problem.